/*  INFO THIS
 * file: words.c */
# ifndef L_LIB_WORDS_U
# define L_LIB_WORDS_U

/*  */
# include "words.h"
/*  INCLUDE
 * Words
 * Words.tail
 * Words.head
 * Words.select
 * Words.line
 * Words.file */

/*  */
# include <iostream>
/*  INCLUDE
 * std::cout
 * std::endl */

/*  */
# include "config.h"
/*  INCLUDE
 * C_SEPARATOR */

/*  INFO
 * do: Init Words */
Words::Words ()
{
  /* log */
  fprintf (stderr, "\nword create\n");
  
  /* clear point select */
  this->select = NULL;
    
  /* clear point tail */
  this->tail = NULL;
  
  /* clear point head */
  this->head = NULL;
    
  link = "empty__link";
  line = "empty__line";
}

/*  INFO
 * do: COPY Words */
Words::Words (Words &words)
{
  /* set point head */
  this->head = words.head;
  
  /* set point tail */
  this->tail = words.tail;
  
  /* set point select */
  this->select = words.select;
  
  /* set value link */
  this->link = words.link;
  
  /* set value line */
  this->line = words.line;
  
  /* log */
  fprintf (stderr, "word copyed\n");
}

void
Words::print ()
{
  std::cout << this->link << C_SEPARATOR << this->line << std::endl;
}

# endif /* L_LIB_WORDS_U */

